.my-gallery {
    display: flex;
     /* 会换行 */
    flex-wrap: wrap;
   
  }
  .my-gallery figure {
    width: 30%;
    margin: 1.5%;
    
  }
  .my-gallery figure img {
    width: 100%;
  }